
<!doctype html>

<html class="no-js fixed-layout"  xmlns:th="http://www.thymeleaf.org">

<head>

    <meta charset="utf-8">

    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <title>管理系统</title>

    <meta name="description" content="这是一个 index 页面">

    <meta name="keywords" content="index">

    <meta name="renderer" content="webkit">

    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <link rel="apple-touch-icon-precomposed" href="assets/i/app-icon72x72@2x.png">

    <meta name="apple-mobile-web-app-title" content="Amaze UI"/>
    <meta name="viewport" content="width=device-width, user-scalable=yes, initial-scale=0.3, maximum-scale=1.0,
    minimum-scale=0.3">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
    <link rel="stylesheet" href="/css/amazeui.min.css"/>

    <link rel="stylesheet" href="/css/admin.css">

    <script src="/js/handlebars.min.js"></script>

    <script src="/js/amazeui.widgets.helper.js"></script>

    <script src="/js/amazeui.ie8polyfill.min.js"></script>

    <script src="/js/jquery.min.js"></script>

    <script src="/js/echarts.js"></script>

    <script src="/js/clipboard.1.5.15.min.js"></script>
    <!-- <script src="/static/js/highcharts.js"></script> -->

    <script src="/js/amazeui.min.js"></script>

    <script src="/js/app.js"></script>

    <link rel="stylesheet" href="/jedate.css?v=1.0.0">
    <script src="//jedate.js"></script>

    <link rel="stylesheet" href="/css/model.css">
    <link rel="stylesheet" href="/css/dio.css">
    <meta charset="utf-8">
    
    </body>

</head>

<body>

<!--[if lte IE 9]>

<p class="browsehappy">你正在使用<strong>过时</strong>的浏览器，Amaze UI 暂不支持。 请 <a href="http://browsehappy.com/" target="_blank">升级浏览器</a>

    以获得更好的体验！</p>

<![endif]-->

<header class="am-topbar am-topbar-inverse admin-header" style="background: #F37B1D;    border-color: #F37B1D;">

    <div class="am-topbar-brand">

        <strong>APP</strong>
        <small>后台管理系统</small>

    </div>

    <button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only"
            data-am-collapse="{target: '#topbar-collapse'}"><span class="am-sr-only">导航切换</span> <span
                class="am-icon-bars"></span></button>


    <div class="am-collapse am-topbar-collapse" id="topbar-collapse">

        <ul class="am-nav am-nav-pills am-topbar-nav am-topbar-right admin-header-list">

            <li class="am-hide-sm-only"><a href="javascript:;" id="admin-fullscreen"><span
                            class="admin-fullText">liutao，欢迎您 </span></a></li>

            <li class="am-dropdown" data-am-dropdown>

                <a class="am-dropdown-toggle" data-am-dropdown-toggle href="javascript:;">

                    <span class="am-icon-users"></span> 刘涛 <span
                            class="am-icon-caret-down"></span>

                </a>

                <ul class="am-dropdown-content">

                    <!--<li><a href="#"><span class="am-icon-user"></span> 资料</a></li>-->

                    <li><a href="/member/edit?mid=459"><span class="am-icon-cog"></span> 修改密码</a></li>

                    <li><a href="/login/quit"><span class="am-icon-power-off"></span> 退出</a></li>

                </ul>

            </li>

            <li class="am-hide-sm-only"><a href="javascript:;" id="admin-fullscreen"><span
                            class="am-icon-arrows-alt"></span> <span class="admin-fullText">开启全屏</span></a></li>

        </ul>

    </div>

</header>


<div class="am-modal am-modal-no-btn" tabindex="-1" id="Jump_prompt-1">

    <div class="am-modal-dialog">

        <div class="Jump_prompt">

            操作失败

        </div>

    </div>

</div>
<div class="am-cf admin-main">
    <!-- sidebar start -->
    <div class="admin-sidebar am-offcanvas" id="admin-offcanvas">
        <div class="am-offcanvas-bar admin-offcanvas-bar">
            <ul class="am-list admin-sidebar-list">
                                                                                <li class="admin-parent">
                            <a class="am-cf "
                               data-am-collapse="{target:'#collapse-nav0'}"><span
                                        class=" am-icon-sm"></span> 用户管理 <span
                                        class="am-icon-angle-right am-fr am-margin-right"></span></a>

                            <ul class="am-list am-collapse admin-sidebar-sub "
                                id="collapse-nav0">

                                
                                    <li><a href="/realUser/userList"><span
                                                    class=" "></span> 用户列表 </a>
                                    </li>
                                
                                    <li><a href="/user/applyFreeCodeList"><span
                                                    class=" "></span> 邀请码 </a>
                                    </li>
                                
                                    <li><a href="/order/orderList"><span
                                                    class=" "></span> 消费记录	 </a>
                                    </li>
                                
                                    <li><a href="/userScore/list"><span
                                                    class=" "></span> 权重排序	 </a>
                                    </li>
                                
                                    <li><a href="/UserGoddess/getLists"><span
                                                    class=" "></span> 女神认证 </a>
                                    </li>
                                                            </ul>
                        </li>
                                                                                                    <li class="admin-parent">
                            <a class="am-cf "
                               data-am-collapse="{target:'#collapse-nav1'}"><span
                                        class=" am-icon-sm"></span> 合规监管 <span
                                        class="am-icon-star admin-icon-yellow am-fr am-margin-right"></span></a>

                            <ul class="am-list am-collapse admin-sidebar-sub am-in"
                                id="collapse-nav1">

                                
                                    <li><a href="/realUser/photoList"><span
                                                    class=" "></span> 相册图片审核 </a>
                                    </li>
                                
                                    <li><a href="/realUser/userVerifyPhotoList"><span
                                                    class=" "></span> 真人认证审核                                             <span class="am-icon-star am-fr am-margin-right admin-icon-yellow"></span></a></a>
                                    </li>
                                
                                    <li><a href="/userAvatar/getList"><span
                                                    class=" "></span> 用户头像审核 </a>
                                    </li>
                                
                                    <li><a href="/userNickname/getList"><span
                                                    class=" "></span> 用户昵称审核 </a>
                                    </li>
                                
                                    <li><a href="/userSignature/getList"><span
                                                    class=" "></span> 用户签名审核 </a>
                                    </li>
                                
                                    <li><a href="/userBackgroundImage/getList"><span
                                                    class=" "></span> 背景图片审核 </a>
                                    </li>
                                
                                    <li><a href="/UserSocialAccountsAudit/getList"><span
                                                    class=" "></span> 社交账号审核 </a>
                                    </li>
                                
                                    <li><a href="/UserVoiceAudit/getList"><span
                                                    class=" "></span> 用户语音审核 </a>
                                    </li>
                                                            </ul>
                        </li>
                                                                                                    <li class="admin-parent">
                            <a class="am-cf "
                               data-am-collapse="{target:'#collapse-nav2'}"><span
                                        class=" am-icon-sm"></span> 投诉处理 <span
                                        class="am-icon-angle-right am-fr am-margin-right"></span></a>

                            <ul class="am-list am-collapse admin-sidebar-sub "
                                id="collapse-nav2">

                                
                                    <li><a href="/user/reportManageList"><span
                                                    class=" "></span> 匿名投诉处理 </a>
                                    </li>
                                                            </ul>
                        </li>
                                                                                                    <li class="admin-parent">
                            <a class="am-cf "
                               data-am-collapse="{target:'#collapse-nav3'}"><span
                                        class=" am-icon-sm"></span> 聊天管理 <span
                                        class="am-icon-angle-right am-fr am-margin-right"></span></a>

                            <ul class="am-list am-collapse admin-sidebar-sub "
                                id="collapse-nav3">

                                
                                    <li><a href="/chat/chatHistory"><span
                                                    class=" "></span> 聊天历史 </a>
                                    </li>
                                                            </ul>
                        </li>
                                                                                                    <li class="admin-parent">
                            <a class="am-cf "
                               data-am-collapse="{target:'#collapse-nav4'}"><span
                                        class=" am-icon-sm"></span> 社区审核 <span
                                        class="am-icon-angle-right am-fr am-margin-right"></span></a>

                            <ul class="am-list am-collapse admin-sidebar-sub "
                                id="collapse-nav4">

                                
                                    <li><a href="/plaza/showList"><span
                                                    class=" "></span> 动态审核 </a>
                                    </li>
                                
                                    <li><a href="/plaza/commentList"><span
                                                    class=" "></span> 评论审核 </a>
                                    </li>
                                                            </ul>
                        </li>
                                                                                                    <li class="admin-parent">
                            <a class="am-cf "
                               data-am-collapse="{target:'#collapse-nav5'}"><span
                                        class=" am-icon-sm"></span> 分享有奖 <span
                                        class="am-icon-angle-right am-fr am-margin-right"></span></a>

                            <ul class="am-list am-collapse admin-sidebar-sub "
                                id="collapse-nav5">

                                
                                    <li><a href="/share/shareList"><span
                                                    class=" "></span> 邀请列表 </a>
                                    </li>
                                
                                    <li><a href="/share/applyList"><span
                                                    class=" "></span> 申请列表 </a>
                                    </li>
                                                            </ul>
                        </li>
                                    
            </ul>

            <div class="am-panel am-panel-default admin-sidebar-panel">

                <div class="am-panel-bd">

                    <p><span class="am-icon-bookmark"></span></p>

                    <p><span style="size:12px;">将相本无主，男儿当自强！</span></p>

                </div>

            </div>


        </div>

    </div>


    <!-- sidebar end --><!-- content start -->
<div class="admin-content">

    <div class="admin-content-body">

        <div class="am-cf am-padding am-padding-bottom-0">

            <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">用户列表</strong>&nbsp;&nbsp;/&nbsp;<small>
                    真人认证
                </small>
            </div>

        </div>

        <hr/>



        <div class="am-g">

            <div class="am-u-md-12">
                <select style="height: 27px" id="verify_status" name="status">
                    <option value='-1'>认证状态</option>
                    <option selected value=3>未审核</option><option value=1>已通过</option><option value=2>未通过</option>                </select>
                <select style="height: 27px" id="oneself" name="oneself">
                    <option value='0'>本人状态</option>
                    <option value=1>已通过</option><option value=2>未通过</option>                </select>
                <input type="text" placeholder="昵称/ID" name="keyword" value="">
                <button class="am-btn am-btn-default search" type="button">搜索</button>
                <button class="am-btn am-btn-default" type="button" id="batch" value="1">批量通过</button>
            <div>

                        <div class=" am-u-md-12">
                <span>当日新增: 66</span>
                <span>当日通过: 0</span>
                <span>当日拒绝: 0</span>
                <span>累计通过: 0</span>
                <span>累计拒绝: 0</span>
            </div>
            <br/>
            
            <div class="am-g">

                <div class="am-u-sm-12">

                    <form class="am-form">

                        <table class="am-table am-table-striped am-table-hover table-main">

                            <thead>

                            <tr>
                                <th class="table-title" style="width: 50px">复选</th>
                                <th class="table-title">序号</th>
                                <th class="table-title">用户ID</th>
                                <th class="table-title">内部号</th>
                                <th class="table-title">昵称</th>
                                <th class="table-title">图片</th>
                                <th class="table-title">视频</th>
                                <th class="table-title">提交时间</th>
                                <th class="table-title">显示状态(首页列表)</th>
                                <th class="table-title">机审状态</th>
                                <th class="table-title">本人登陆</th>
                                <th class="table-title">拒绝次数</th>
                                <th class="table-title">审核</th>
                                <th class="table-title">拒绝原因</th>
                                <th class="table-title">操作</th>
                            </tr>

                            </thead>

                            <tbody  id="pageInfo">


                                <tr >

                                    <td style="width: 50px"><input type="checkbox" checked="checked" value="35123" name="ids" /></td>
                                    <td ></td>
                                    <td></td>
                                    <td style="width: 70px">
                                        否                                    </td>
                                    <td></td>
                                    <td><img style="width:220px;height:250px;" alt=""
                                            ></td>
                                    <td>
                                        <video style='width:220px;height:250px;' controls='controls' ></video>                                    </td>
                                    <td >2021-08-01 17:00:34</td>
                                    <td >显示</td>
                                    <td >已认证</td>
                                    <td >已通过</td>
                                    <td >0</td>
                                    <td><a href="javascript:;" onclick="showAuditList(this)" show_id="35123" show_type='3'>查看</a></td>
                                    <td style="width: 300px"><input type="text" name="remark" placeholder="该内容会发送给用户" id="remark-35123"/></td>
                                    <td>
                                        <div class="am-btn-toolbar">
                                            <div class="am-btn-group am-btn-group-xs am-text-warning">
                                                <a href="javascript:;" abc="/realUser/verifyUserDisplay?id=35123&is_show=1" pid=35123 class="am-btn am-btn-default am-btn-xs am-text-success am-hide-sm-only is_display"><span>通过</span></a>
                                            </div>
                                            <div class="am-btn-group am-btn-group-xs am-text-warning">
                                                <a href="javascript:;" abc="/realUser/verifyUserDisplay?id=35123&is_show=0" pid=35123 class="am-btn am-btn-default am-btn-xs am-text-warning am-hide-sm-only is_display"><span>拒绝</span></a>
                                            </div>
                                        </div>
                                    </td>

                                </tr>

                            
                            </tbody>

                        </table>

                        <div class="am-cf">

                            共 1 条记录
                        </div>

                    </form>

                    <div align="center">

                        <div id="test1"></div>


                    </div>
                </div>

            </div>

        </div>

    </div>
<!-- 查看审核历史 -->
<div class="am-modal am-modal-no-btn" tabindex="-1" id="showList-model">
    <div class="am-modal-dialog" style="width: 1200px;">
        <div class="am-modal-hd"> 审核历史
        <a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close>&times;</a>
        </div>
        <div class="am-modal-bd" id="modal-img-list">
            <table class="am-table am-table-striped am-table-hover table-main">
                <thead>
                    <tr>
                        <th class="table-title">模块名称</th>
                        <th class="table-title">id</th>
                        <th class="table-title">操作</th>
                        <th class="table-title">操作人</th>
                        <th class="table-title">操作时间</th>
                    </tr>
                </thead>
                <tbody class="user-forbidden-list">
                </tbody>
            </table>
        </div>
        <div class="dioConfirm">
            <button onclick="outShowList()" type="button">取消</button>
        </div>
        <input type="hidden" name="showlist_id" id="showlist_id" />
        <input type="hidden"  id="pageCount" th:value="${pageCount}" />
    </div>
</div>
            <!-- 引入 layui.css -->
            <link rel="stylesheet" href="//unpkg.com/layui@2.6.8/dist/css/layui.css">

            <!-- 引入 layui.js -->
            <script src="//unpkg.com/layui@2.6.8/dist/layui.js"></script>

            <script>



                layui.use('laypage', function(){
                    var laypage = layui.laypage;
                 var pageCount =  $("#pageCount").val();


                    //执行一个laypage实例
                    laypage.render({
                        elem: 'test1' //注意，这里的 test1 是 ID，不用加 # 号
                            ,count: pageCount //数据总数，从服务端得到
                        , method: 'post'
                        , page: true //开启分页
                        , limit: 5
                        , limits: [2, 3, 5],
                        jump: function(obj, first) {

                            $.ajax({url:'/ZhengRenRenZhengController/pageInfo?pageNum='+obj.curr ,
                                success:function(result){
                             var zrrz=result.list;
                                    var data="";
                              for (var i=0;i<zrrz.length;i++){

                                  data+=" <tr >\n" +
                                      "\n" +
                                      " <td style=\"width: 50px\"><input type=\"checkbox\" checked=\"checked\" value=\"35123\" name=\"ids\" /></td>\n" +
                                      "<td >"+(i+1)+"</td>\n" +
                                      "<td>"+zrrz[i].id+"</td>\n" +
                                      "<td style=\"width: 70px\">\n" +
                                      " 否 </td>\n" +
                                      " <td >"+zrrz[i].name+"</td>\n" +
                                      "<td><img style=\"width:220px;height:250px;\"  src="+zrrz[i].imgurl+"></td>\n" +
                                      "<td>\n" +
                                      "<video style='width:220px;height:250px;' controls='controls' src="+zrrz[i].mp4url+"></video>                                    </td>\n" +
                                      "<td >"+zrrz[i].create_time+"</td>\n" +
                                      "<td >"+zrrz[i].state+"</td>\n" +
                                      "<td >"+zrrz[i].authentication+"</td>\n" +
                                      "<td >"+zrrz[i].login+"</td>\n" +
                                      "<td >"+zrrz[i].reject+"</td>\n" +
                                      "<td><a href=\"javascript:;\" onclick=\"showAuditList(this)\" show_id=\"35123\" show_type='3'>查看</a></td>\n" +
                                      "<td style=\"width: 300px\"><input type=\"text\" name=\"remark\" placeholder=\"该内容会发送给用户\" id=\"remark-35123\"/></td>\n" +
                                      "<td>\n" +
                                      "<div class=\"am-btn-toolbar\">\n" +
                                      "<div class=\"am-btn-group am-btn-group-xs am-text-warning\">\n" +
                                      "<a href=\"javascript:;\" abc=\"/realUser/verifyUserDisplay?id=35123&is_show=1\" pid=35123 class=\"am-btn am-btn-default am-btn-xs am-text-success am-hide-sm-only is_display\"><span>通过</span></a>\n" +
                                      "</div>\n" +
                                      "<div class=\"am-btn-group am-btn-group-xs am-text-warning\">\n" +
                                      " <a href=\"javascript:;\" abc=\"/realUser/verifyUserDisplay?id=35123&is_show=0\" pid=35123 class=\"am-btn am-btn-default am-btn-xs am-text-warning am-hide-sm-only is_display\"><span>拒绝</span></a>\n" +
                                      "</div>\n" +
                                      "                                                                                                                                                                            </div>\n" +
                                      "</td>\n" +
                                      "\n" +
                                      "</tr>";
                              }
                                     $("#pageInfo").html(data)

                                }});
                        }
                    });
                });


            </script>


<script type="text/javascript">
    $(function () {
        $(".tab .tab-item").click(function () {
            $(this).addClass("active").siblings().removeClass("active");
        })
    })

    function showAuditList(obj) {
        id = $(obj).attr("show_id");
        $('#showlist_id').val(id);

        data = new Object();
        data.id = $("#showlist_id").val();
        data.type = $(obj).attr("show_type");
        console.log(data);


        var url = "/auditLog/list";
        $.ajax({
            type: 'POST',
            url: url,
            data: data,
            dataType: "json",
            //在请求之前调用的函数
            beforeSend:function(){
                // console.log(1);
            },
            //成功返回之后调用的函数
            success:function(data){

                if (data.error) {
                    alert(data.msg);
                }else{
                    console.log(data.data);
                    $(".user-forbidden-list").html('');
                    html = '';
                    $.each(data.data,function (i,item) {
                        html += '<tr>';
                        html += '<th>' + item.type_name + '</th>';
                        html += '<th>' + item.record_id + '</th>';
                        if (item.record_status == 0) {
                            html += '<th>' + '拒绝' + '</th>';
                        }else{
                            html += '<th>' + '通过' + '</th>';
                        }
                        html += '<th>' + item.member_name + '</th>';
                        html += '<th>' + item.create_time + '</th>';
                        html += '</tr>';
                    });
                    $(".user-forbidden-list").append(html);
                    $('#showList-model').modal('open');
                    // $('#showList-model').modal('close');
                }
                
            },
            //调用执行后调用的函数
            complete: function(XMLHttpRequest, textStatus){
               console.warn(XMLHttpRequest.responseText);
               // console.warn(textStatus);
            },
            //调用出错执行的函数
            error: function(){
                //请求出错处理
                console.error('请求失败');
            }
        });

        // $('#showList-model').modal('open');
    }
    

    function outShowList() {
        $('#showList-model').modal('close');
    }
</script>

    <script type="text/javascript">

        $('#batch').click(function () {

            var obj = document.getElementsByName('ids');
            var check_val = [];
            for (k in obj) {
                if (obj[k].checked)
                    check_val.push(obj[k].value);
            }

            if (check_val.length != 0) {

                var href = "/realUser/verifyUserDisplay?is_show=1" +
                    '&ids=' + JSON.stringify(check_val);

                $.get(href,function(data){
                    $('.Jump_prompt').html(data.msg);
                    $('#Jump_prompt-1').modal({closeViaDimmer:false,width:100});
                    setTimeout(function(){
                        $('#Jump_prompt-1').modal('close');
                        history.go(0);
                    },1500);
                }, "json");

            }

        });

        $('.delete').click(function () {

            var href = $(this).attr('abc');

            $.get(href, function (data) {

                $('.Jump_prompt').html(data.msg);

                $('#Jump_prompt-1').modal({closeViaDimmer: false, width: 100});

                setTimeout(function () {

                    $('#Jump_prompt-1').modal('close');

                    history.go(0);

                }, 1500);

            }, "json");

        });


        $('.status').click(function () {

            var href = $(this).attr('abc');

            $.get(href, function (data) {

                $('.Jump_prompt').html(data.msg);

                $('#Jump_prompt-1').modal({closeViaDimmer: false, width: 100});

                setTimeout(function () {

                    $('#Jump_prompt-1').modal('close');

                    history.go(0);

                }, 1500);

            }, "json");

        });

        // 显示或隐藏用户
        $('.is_display').click(function(){

            var pid = $(this).attr('pid');
            var remark = $('#remark-' + pid).val();
            var href = $(this).attr('abc') + '&remark=' + remark;

            $(this).attr('disabled',"true"); // 防止重复点击
            $.get(href,function(data){
                $('.Jump_prompt').html(data.msg);
                $('#Jump_prompt-1').modal({closeViaDimmer:false,width:100});
                setTimeout(function(){
                    $('#Jump_prompt-1').modal('close');
                    history.go(0);
                },1500);
            }, "json");
        });


        $('.search').click(function () {

            var link = $.trim($('input[name="keyword"]').val());
            var status = $.trim($('#verify_status').val());
            var oneself = $.trim($('#oneself').val());

            if (link != '' || status != '') {

                window.location.href = "/realUser/userVerifyPhotoList?keywords=" + link + "&status=" + status + "&oneself=" + oneself;

            }

        });

    </script>




  <!-- content end -->



<a href="#" class="am-icon-btn am-icon-th-list am-show-sm-only admin-menu" data-am-offcanvas="{target: '#admin-offcanvas'}"></a>



<footer>

  <hr>

  <p class="am-padding-left">© 2019 AllMobilize, Inc. Licensed under MIT license.</p>

</footer>



</div>



<a href="#" class="am-icon-btn am-icon-th-list am-show-sm-only admin-menu" data-am-offcanvas="{target: '#admin-offcanvas'}"></a>



<!--[if lt IE 9]>

<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>

<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>

<script src="assets/js/amazeui.ie8polyfill.min.js"></script>

<![endif]-->

<!--[if (gte IE 9)|!(IE)]><!-->

</html>